package srkwizard.importWizards;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.IImportWizard;
import org.eclipse.ui.IWorkbench;

public class ImportWizard extends Wizard implements IImportWizard {

	private IWizardPage simplePage1;
	private IWizardPage simplePage2;

	public ImportWizard() {
		super();
	}

	public boolean performFinish() {
		System.out.println("Nothing to do performFinish");
		return true;
	}

	public void init(IWorkbench workbench, IStructuredSelection selection) {
		setWindowTitle("Srk Import Wizard"); 
		setNeedsProgressMonitor(true);
		simplePage1 = new SimpleWizardPage("Simple First page");
		simplePage2 = new SimpleWizardPage("Simple Second page");
	}

	public void addPages() {
		super.addPages();
		simplePage1.setTitle("SRK Wizard First Page");
		simplePage1.setDescription("This is the first page of the wizard");
		addPage(simplePage1);
		simplePage2.setTitle("SRK Wizard Second Page ");
		addPage(simplePage2);
	}

}
